package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.SmsHistoryDao;
import com.platform.entity.SmsHistoryEntity;
import com.platform.service.SmsHistoryService;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-10-21 00:36:13
 */
@Service("smsHistoryService")
public class SmsHistoryServiceImpl implements SmsHistoryService {
    @Autowired
    private SmsHistoryDao smsHistoryDao;

    @Override
    public SmsHistoryEntity queryObject(Integer id) {
        return smsHistoryDao.queryObject(id);
    }

    @Override
    public List<SmsHistoryEntity> queryList(Map<String, Object> map) {
        return smsHistoryDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return smsHistoryDao.queryTotal(map);
    }

    @Override
    public int save(SmsHistoryEntity smsHistory) {
        return smsHistoryDao.save(smsHistory);
    }

    @Override
    public int update(SmsHistoryEntity smsHistory) {
        return smsHistoryDao.update(smsHistory);
    }

    @Override
    public int delete(Integer id) {
        return smsHistoryDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return smsHistoryDao.deleteBatch(ids);
    }
}
